package com.TeacherInfoServer.common.service;

import com.TeacherInfoServer.common.Result;
import com.TeacherInfoServer.pojo.DTO.AddTemplateFile;
import com.TeacherInfoServer.pojo.DTO.UpdateTemplateFile;
import com.TeacherInfoServer.pojo.entity.TemplateFile;
import com.TeacherInfoServer.pojo.query.TemplateFileQuery;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【template_file】的数据库操作Service
* @createDate 2024-05-21 18:02:53
*/
public interface TemplateFileService extends IService<TemplateFile> {

    Result<?> getListRoughly(TemplateFileQuery templateFileQuery);

    Result<?> getDetails(String id);

    Result addOne(AddTemplateFile addTemplateFile);

    Result update(UpdateTemplateFile updateTemplateFile);

    @Transactional
    Result<String> deleteByIds(List<Integer> list);
}
